﻿<%@ Page Language="VB" MasterPageFile="~/Pages/Admin/AdminMasterPage.master" AutoEventWireup="false" CodeFile="start.aspx.vb" ValidateRequest="false" Inherits="Pages_Admin_start" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<!--ckeditor -->
    <script src="../js/mypage.js" type="text/javascript"></script>
    <script src="../js/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="../js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
    <link href="../js/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />

<div id="controlbox">
        <!--dropdown sektion-->
        <asp:Label ID="lblDDLError" runat="server" ></asp:Label>
        <asp:Label ID="lblSection" runat="server" Text="Sektion"></asp:Label>
        <asp:DropDownList ID="ddlChooseSubject" runat="server"></asp:DropDownList>
        
        <!--Dold panel som håller ID-->
             <asp:Panel ID="pnHiddenCK" Visible="false" runat="server">
                <asp:Label ID="lblHiddenCK" runat="server" Text=""></asp:Label>
             </asp:Panel>

<!--meny-->
<div id="btnDelete">
        <asp:CheckBox ID="chkFrontNews" runat="server" Text="FP" />
        <asp:CheckBox ID="chkPrio" text="Prio" runat="server" />
             
        <asp:Button ID="btnSubmitNews" CausesValidation="true" ValidationGroup="news" runat="server" Text="Spara" />
        <asp:Button ID="btnDeleteNews" runat="server"  OnClick="btnDeleteNews_Click" OnClientClick="return (Page_IsValid && confirm('Vill du verkligen ta bort nyheten?'));" Text="Ta bort" />
        <asp:Button ID="btnClear" runat="server" Text="Rensa" />
</div>
<br />
<br />

     <!--CKeditor-->
        <CKEditor:CKEditorControl ID="CKEditor1" runat="server" ResizeEnabled ="false" Toolbar = "Full" EnableXHTML="true" > 
</CKEditor:CKEditorControl>


<br />
   
    
</div>
   

   <!--repeater som listar nyheter-->
        <div id="repeater">
         <asp:Repeater ID="rptNewsStartingpage" EnableViewState="false" runat="server">
              
          <ItemTemplate>

         <div class="<%#DataBinder.Eval(Container.DataItem, "NewsName")%>">
         <!--dold panel som håller ID-->
         <asp:Panel ID="pnHidden" Visible="false" runat="server">
         <asp:Label ID="txtHidden" runat="server" Text=""></asp:Label>
          </asp:Panel>

        <!--editera meny för nyheter-->
          <div id="btnDelete" style="background-color:transparent;">      
          <asp:CheckBox ID="chkFirstPage" runat="server" Text="FP" Enabled="false" />
          <asp:CheckBox ID="chkPrioNews" runat="server" Text="Prio" Enabled="false"/>
          <asp:Button ID="btnEdit" runat="server" CommandArgument="btnEdit" Text="Editera" />
         </div>
        
          <br />
          <u><h4><%#DataBinder.Eval(Container.DataItem, "Header")%></h4></u>
           <%#DataBinder.Eval(Container.DataItem, "texten")%>
           <em> <%#DataBinder.Eval(Container.DataItem, "DateNews")%></em>
           <br />
          </div>

        </ItemTemplate>
        </asp:Repeater>

        </div>   
           


         <script type="text/javascript">

             function fnLoad() {
                 document.getElementById('CKeditor1').focus();

             }

</script>
        

</asp:Content>

